/*
 * Alipay.com Inc.
 * Copyright (c) 2004 - 2010 All Rights Reserved.
 * Powered By [rapid-generator]
 */

package com.pingan.mobilegw.common.dal.dataobject;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.util.Date;

/**
 * MaServiceConfigDO
 * database table: MA_SERVICE_CONFIG
 * database table comments: 移动服务配置表
 * This file is generated by <tt>dalgen</tt>, a DAL (Data Access Layer)
 * 
 * PLEASE DO NOT MODIFY THIS FILE MANUALLY, or else your modification may
 * be OVERWRITTEN by someone else. To modify the file, you should go to 
 * directory <tt>(project-home)/dalgen</tt>
 * @author badqiu(zhongxuan)
 *
 
 */
public class MaServiceConfigDO implements java.io.Serializable {
    private static final long serialVersionUID = -5216457518046898601L;

    /**
     * id 		db_column: ID 
     */
    private int               id;
    /**
     * 系统名 		db_column: SYS_NAME 
     */
    private String            sysName;
    /**
     * 方法名 		db_column: INTERFACE_TYPE 
     */
    private String            interfaceType;
    /**
     * 上传服务器 		db_column: METHOD_NAME 
     */
    private String            methodName;
    /**
     * 修改时间 		db_column: GMT_MODIFIED 
     */
    private Date              gmtModified;
    /**
     * 0:状态未决 1:开放 2:关闭 		db_column: ISOPEN 
     */
    private int               isopen;
    /**
     * 业务级过滤规则信息,KV存储 		db_column: CONF_PARAMS 
     */
    private String            confParams;
    /**
     * 备注 		db_column: MEMO 
     */
    private String            memo;
    /**
     * 创建时间 		db_column: GMT_CREATE 
     */
    private Date              gmtCreate;

    private String            operationType;

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return this.id;
    }

    public void setSysName(String sysName) {
        this.sysName = sysName;
    }

    public String getSysName() {
        return this.sysName;
    }

    public void setInterfaceType(String interfaceType) {
        this.interfaceType = interfaceType;
    }

    public String getInterfaceType() {
        return this.interfaceType;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodName() {
        return this.methodName;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() {
        return this.gmtModified;
    }

    public void setIsopen(int isopen) {
        this.isopen = isopen;
    }

    public int getIsopen() {
        return this.isopen;
    }

    public void setConfParams(String confParams) {
        this.confParams = confParams;
    }

    public String getConfParams() {
        return this.confParams;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public String getMemo() {
        return this.memo;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() {
        return this.gmtCreate;
    }

    public String toString() {
        return new ToStringBuilder(this).append("Id", getId()).append("SysName", getSysName())
            .append("InterfaceType", getInterfaceType()).append("MethodName", getMethodName())
            .append("GmtModified", getGmtModified()).append("Isopen", getIsopen())
            .append("ConfParams", getConfParams()).append("Memo", getMemo())
            .append("GmtCreate", getGmtCreate()).toString();
    }

    public int hashCode() {
        return new HashCodeBuilder().append(getId()).toHashCode();
    }

    public boolean equals(Object obj) {
        if (obj == null)
            return false;
        if (this == obj)
            return true;
        if (obj instanceof MaServiceConfigDO == false)
            return false;
        MaServiceConfigDO other = (MaServiceConfigDO) obj;
        return new EqualsBuilder().append(getId(), other.getId()).isEquals();
    }

    /**
     * Getter method for property <tt>operationType</tt>.
     * 
     * @return property value of operationType
     */
    public String getOperationType() {
        return operationType;
    }

    /**
     * Setter method for property <tt>operationType</tt>.
     * 
     * @param operationType value to be assigned to property operationType
     */
    public void setOperationType(String operationType) {
        this.operationType = operationType;
    }
}
